 new Vue({
        el:'#nav',
        data: {
            Cate_Content:[],
            Cate_content_url: 'http://10.101.147.7/htdocs/7yue/tp5/public/index/index/index'  //存数据接口
        },
        created: function(){
            this.getImg() ;      //定义方法
        },
        methods: {
            getImg: function(){
                var that = this;
                that.$http({      //调用接口
                    method:'GET',
                    url:this.Cate_content_url //this指data
                }).then(function(response){ //接口返回数据
                    //console.log(response.data);
                    this.Cate_Content=response.data;
                },function(error){
                    console.log(error);
                })
            }
        }
    })